<%@page import="model.entity.Category"%>
<%@page import="model.CategoryImp"%>
<%@page import="java.util.List"%>
<%@page import="model.*"%>
<%@page import="model.entity.Account"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="tab_container">
    <div id="tab2" class="tab_content" style="display: block;">
        <h2>Create Category</h2>

        <p>

        </p>
<%
    List<Category> lcat = (List<Category>) request.getAttribute("lcat");
%>
        <form action="<c:url value="<%= "/admin/category/create/"%>"/>" method="POST" name="frmedit" >
            <p>
                <label>Category Name:  </label><br/>
                <input type="text" class="text small" name="categoryname" > 
            </p>
            <label for="cbo">Parent Category:</label>

            <select name="parentid" id="cbo" class="select">
<%
    for(Category list : lcat)
               {
%>
                <option value="<%= list.getCategoryid() %>"><%= list.getCategoryname() %> </option>
<%}%>
            </select>   

       
            <p>
                <input type="submit" class="submit" value="Submit">
            </p>

        </form>

    </div>
</div>